.toolbar {
	left: 0;
	right: 0;
	z-index: $z-index-toolbar;
	cursor: default;
	position: relative;
	display: flex;
	justify-content: space-between;
	-moz-window-dragging: drag;
	user-select: none;
	color: #404040;
	font-size: 12px;
	height: 41px !important;
	min-height: 41px;
	margin: 0;
	padding: 0px 8px;
	min-width: 1px;
	background: var(--material-toolbar);
	border-bottom: var(--material-panedivider);

	.start,
	.center,
	.end {
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.end {
		justify-content: flex-end;
		padding-inline-end: var(--toolbar-placeholder-width);

	}

	.custom-sections {
		display: flex;
		padding: 0 3px;
		gap: 3px;
	}

	.toolbar-button, .toolbar-text-input {
		-moz-window-dragging: no-drag;
	}

	#pageNumber {
		width: 52px;
		text-align: right;
	}

	#numPages {
		color: var(--fill-secondary);
		margin-left: 0;
		display: flex;

		div {
			position: absolute;
		}
	}

	@include macOS-inactive-opacity;
}

[dir=rtl] .toolbar {
	.sidebar-toggle {
		transform: scaleX(-1);
	}
}

[dir=ltr] .toolbar {
	.context-pane-toggle .standard-view {
		transform: scaleX(-1);
	}
}

.divider {
	width: 1px;
	height: 20px;
	border-radius: 0.5px;
	background: var(--fill-quinary);
	margin: 0 4px;
}

.toolbar-button {
	color: var(--fill-secondary);
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;

	&:hover {
		background-color: var(--fill-quinary);
	}

	&:active, &.active, &.active-pseudo-class-fix {
		background-color: var(--fill-quarternary);
	}

	&[disabled] {
		pointer-events: none;
	}
}

.toolbar-dropdown-button {
	gap: 4px;
	width: 40px;
}

.toolbar-text-input {
	padding: 0 7px;
	background: var(--material-background);
	border-radius: 5px;
	border: var(--material-border-quinary);
	height: 28px;
	width: 100%;

	&:focus {
		outline: none;
		border-color: rgba(0, 0, 0, 0);
		box-shadow: 0 0 0 var(--width-focus-border) var(--color-focus-search);
	}
}
